package com.example.demo.controller;
/* @Author      zouzh
 * @PackageName interceptor-demo
 * @Package     com.example.demo.controller
 * @Date        2023/8/25 15:04
 */

import com.example.demo.common.ResultJAjax;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/getuser")
    public ResultJAjax getUser(){
        System.out.println("do getUser()");
        return ResultJAjax.succ("user");
    }

    @RequestMapping("/reg")
    public ResultJAjax reg(){
        System.out.println("do reg()");
        Object obj = null;
        System.out.println(obj.hashCode());
        return ResultJAjax.succ("reg");
    }

    @RequestMapping("/login")
    public ResultJAjax login(){
        System.out.println("do login()");
        return ResultJAjax.succ("login");
    }

}
